package com.wxm.killing.mq.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import javax.persistence.*;

/**
 * 
 * 
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-11-05 14:57:58
 */
@Data
@Table(name = "tb_contract_buy")
public class TbContractBuy implements Serializable {
    private static final long serialVersionUID=1L;
   /**
    * 编号
    */
	@Id
	private Integer buyId;
   /**
    * 会员编号
    */
	@Column(name = "user_id")
	private Integer userId;
   /**
    * 合约编号
    */
	@Column(name = "contract_id")
	private Integer contractId;
   /**
    * 
    */
	@Column(name = "sn")
	private String sn;
   /**
    * 合约总货币数量
    */
	@Column(name = "number_total")
	private BigDecimal numberTotal;
   /**
    * 合约剩余货币数量
    */
	@Column(name = "number_balance")
	private BigDecimal numberBalance;
   /**
    * 购买总金额
    */
	@Column(name = "money_total")
	private BigDecimal moneyTotal;
   /**
    * 创建时间
    */
	@Column(name = "create_time")
	private Date createTime;
   /**
    * 更新时间
    */
	@Column(name = "update_time")
	private Date updateTime;
   /**
    * 0:待审核 1:审核成功 2;已完成 -1：终止
    */
	@Column(name = "status")
	private Integer status;
   /**
    * 
    */
	@Column(name = "cancel_time")
	private Date cancelTime;
   /**
    * 释放天数
    */
	@Column(name = "release_day")
	private Integer releaseDay;
   /**
    * 合约收益
    */
	@Column(name = "contract_profit")
	private BigDecimal contractProfit;
}
